package com.ekingwin.www.esb.EAS_SUNAC_103_GLHTSP;

public class EAS_SUNAC_103_GLHTSP_pttProxy implements com.ekingwin.www.esb.EAS_SUNAC_103_GLHTSP.EAS_SUNAC_103_GLHTSP_ptt {
  private String _endpoint = null;
  private com.ekingwin.www.esb.EAS_SUNAC_103_GLHTSP.EAS_SUNAC_103_GLHTSP_ptt eAS_SUNAC_103_GLHTSP_ptt = null;
  
  public EAS_SUNAC_103_GLHTSP_pttProxy() {
    _initEAS_SUNAC_103_GLHTSP_pttProxy();
  }
  
  public EAS_SUNAC_103_GLHTSP_pttProxy(String endpoint) {
    _endpoint = endpoint;
    _initEAS_SUNAC_103_GLHTSP_pttProxy();
  }
  
  private void _initEAS_SUNAC_103_GLHTSP_pttProxy() {
    try {
      eAS_SUNAC_103_GLHTSP_ptt = (new com.ekingwin.www.esb.EAS_SUNAC_103_GLHTSP.EAS_SUNAC_103_GLHTSP_pttBindingQSServiceLocator()).getEAS_SUNAC_103_GLHTSP_pttBindingQSPort();
      if (eAS_SUNAC_103_GLHTSP_ptt != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)eAS_SUNAC_103_GLHTSP_ptt)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)eAS_SUNAC_103_GLHTSP_ptt)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (eAS_SUNAC_103_GLHTSP_ptt != null)
      ((javax.xml.rpc.Stub)eAS_SUNAC_103_GLHTSP_ptt)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.ekingwin.www.esb.EAS_SUNAC_103_GLHTSP.EAS_SUNAC_103_GLHTSP_ptt getEAS_SUNAC_103_GLHTSP_ptt() {
    if (eAS_SUNAC_103_GLHTSP_ptt == null)
      _initEAS_SUNAC_103_GLHTSP_pttProxy();
    return eAS_SUNAC_103_GLHTSP_ptt;
  }
  
  public com.ekingwin.www.esb.EAS_SUNAC_103_GLHTSP.Response EAS_SUNAC_103_GLHTSP(com.ekingwin.www.esb.EAS_SUNAC_103_GLHTSP.EAS_SUNAC_103_GLHTSP parameters, com.ekingwin.www.esb.header.v1.holders.HeaderHolder parameters2) throws java.rmi.RemoteException, com.ekingwin.www.esb.EAS_SUNAC_103_GLHTSP.QueryFault{
    if (eAS_SUNAC_103_GLHTSP_ptt == null)
      _initEAS_SUNAC_103_GLHTSP_pttProxy();
    return eAS_SUNAC_103_GLHTSP_ptt.EAS_SUNAC_103_GLHTSP(parameters, parameters2);
  }
  
  
}